package com.xxk.wdis.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 药品库存表
 * </p>
 *
 * @author cwb
 * @since 2020-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DrugStock implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 库存id
     */
    @TableId(value = "stock_id", type = IdType.AUTO)
    private Long stockId;

    /**
     * 药品编号
     */
    private Long drugId;

    /**
     * 药品名字
     */
    private String drugName;

    /**
     * 拼音码
     */
    private String py;

    /**
     * 五笔码
     */
    private String wb;

    /**
     * 药品单位
     */
    private String drugUnit;

    /**
     * 药品数量
     */
    private BigDecimal drugNum;

    /**
     * 有效期
     */
    private LocalDate valid;

    /**
     * 批次
     */
    private Long batch;

    /**
     * 药品实际价格
     */
    private BigDecimal drugPrice;

    /**
     * 零售价
     */
    private BigDecimal selfPrice;


}
